﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StoragePeriod.Model.FoodTesting;

namespace StoragePeriod.IDAL.FoodTesting
{
    /// <summary>
    /// 碳水化合物
    /// </summary>
    public interface I_CarbohydratesData
    {
        /// <summary>
        /// 获取Vc含量检查实体
        /// </summary>
        /// <param name="eVcData">查询ID</param>
        /// <returns>返回对应的实体</returns>
        E_CarbohydratesData GetDataEntityById(E_CarbohydratesData eCarbohydratesData);

        /// <summary>
        /// 根据原料ID和检测时间 删除检测记录
        /// </summary>
        /// <param name="eVcData">要删除的检测记录</param>
        /// <returns></returns>
        int RemoveByTime(E_CarbohydratesData eCarbohydratesData);

        /// <summary>
        /// 删除某一次检测记录
        /// </summary>
        /// <param name="eVcData">要删除的检测记录</param>
        /// <returns></returns>
        int RemoveByFoodNum(E_CarbohydratesData eCarbohydratesData);

        /// <summary>
        /// 根据原料ID 和检测时间 获取所有的检测记录
        /// </summary>
        /// <param name="eVcData">要获取的检测记录</param>
        /// <returns></returns>
        List<E_CarbohydratesData> GetDataListByTime(E_CarbohydratesData eCarbohydratesData);

        /// <summary>
        /// 增加一条数据
        /// </summary>
        int Add(E_CarbohydratesData eCarbohydratesData);
    }
}
